package org.asportoonline.integration;

import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.asportoonline.entities.Cliente;
import org.asportoonline.entities.ProdottoPrenotato;

/**
 *
 * @author fe
 */
@Stateless
public class ProdottoPrenotatoFacadeImplementation extends AbstractFacade<ProdottoPrenotato> implements ProdottoPrenotatoFacade {
    @PersistenceContext(unitName = "AsportoOnline-ejbPU")
    private EntityManager em;

    protected EntityManager getEntityManager() {
        return em;
    }

    public ProdottoPrenotatoFacadeImplementation() {
        super(ProdottoPrenotato.class);
    }
    
    @Override
    public void create(ProdottoPrenotato prodpren) {
        em.persist(prodpren);
    }

}
